﻿@using Webdiyer.WebControls.Mvc
@model PagedList<EAM.Model.AssetConfigOther>
@{
    ViewBag.Title = "配置列表";
}
@if (false)
{
    <script src="../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
}
<div style="padding: 5px 10px;">
    <a href="@Url.Action("edit", "ConfigOther", new { id = -1 })" class="btn_green">新建配置</a>
</div>
<div style="padding: 0px 10px;">
    <table class="tb" width="98%" style="text-align: center;">
        <tr>
            <th style="width: 20px;"></th><th valign="top">编号</th><th>配置名称</th><th>配置说明</th><th>配置类型</th><th>操作</th>
        </tr>
        @foreach (var m in Model)
        {
            <tr>
                <td>
                    <input type="checkbox" /></td>
                <td>@m.AssetConfigID</td>
                <td>@m.AssetConfigName</td>
                <td>@m.AssetConfigDescprit</td>
                <td>
                    @( ((Dictionary<int, string>)ViewData["confOTypeDic"])[(int)@m.AssetConfigType])
                </td>
                <td width="80">
                    <a href="@Url.Action("edit", "ConfigOther", new { id = m.AssetConfigID })">编辑</a>
                    <a style="display:none;" href="@Url.Action("del", "ConfigOther", new { id = m.AssetConfigID })" onclick="return confirm('确认删除吗？')">删除</a>
                </td>
            </tr>
        }
        <tr>
            <td>
                <input type="checkbox" /></td>
            <td colspan="5" style="text-align: left;">
                <div style="float: left;">
                    <input type="button" value="删除" class="btn_red" style="display:none;"/></div>
                <div style="float: right;">@Html.Pager(Model)</div>
                <div style="clear: both;"></div>
            </td>
        </tr>
    </table>
</div>
